<?php
/**
 * 核销管理——优惠券核销
 */

namespace App\store\controllers\writeoff;


use App\store\controllers\StoreBaseControllers;
use Illuminate\Http\Request;

class CouponController extends StoreBaseControllers
{

    /**
     * 优惠券核销记录
     */
    public function getCouponWriteoffRecord(Request $request)
    {

        $list = self::getStoreData('Writeoff','getCouponWriteoffRecord');

        return successJson('获取成功!', $list);
    }

    /**
     * 自提核销记录核销详情
     */
    public function getCouponWriteoffRecordDetails(Request $request)
    {

        $list = self::getStoreData('Writeoff','getCouponWriteoffRecordDetails');

        return successJson('获取成功!', $list);
    }

    /**
     * 优惠券核销统计
     */
    public function getCouponWriteoffTotal(Request $request)
    {

        $list = self::getStoreData('Writeoff','getCouponWriteoffTotal');

        return successJson('获取成功!', $list);
    }

}
